package com.van.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

/**
 * 导航菜单
 * @author VanKa (tel:15228297669 qq:2395073039)
 * @date 2021-04-15 10:22
 */
@Data
@TableName(value = "menu")
public class Menu {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    //上级名称
    @TableField(value = "mName")
    private String mName;
    //上级编号
    @TableField(value = "mId")
    private int mId;
    //地址
    private String url;
    //图标
    private String icon;
    //标题
    private String name;
    //排序 越大越前
    private int sort = 0;
    //权限判断
    @TableField(exist = false)
    private boolean own = false;

    @TableField(exist = false)
    private List<Menu> data;
}
